unit ULancTitulos;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, DB, StdCtrls, Mask, DBCtrls, Buttons, ComCtrls, ExtCtrls;

type
  TFrmLancTitulos = class(TForm)
    BitBtn1: TBitBtn;
    BitBtn2: TBitBtn;
    Panel1: TPanel;
    Panel2: TPanel;
    Panel3: TPanel;
    StatusBar1: TStatusBar;
    Label1: TLabel;
    Label5: TLabel;
    DBEditValorRec: TDBEdit;
    DBEditDataRec: TDBEdit;
    Label6: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Label7: TLabel;
    DBLookupComboBoxFormaPagamento: TDBLookupComboBox;
    DBEditJuros: TDBEdit;
    Label8: TLabel;
    Label4: TLabel;
    DBEditTitulo: TDBEdit;
    DBEditParcelas: TDBEdit;
    DBEditVencimento: TDBEdit;
    DBEditValor: TDBEdit;
  private
    { Private declarations }
  public
    procedure SetDataSource(fonte: TDataSource);
  end;

var
  FrmLancTitulos: TFrmLancTitulos;

implementation

{$R *.dfm}

{ TFrmLancTitulos }

procedure TFrmLancTitulos.SetDataSource(fonte: TDataSource);
begin
  DBEditValorRec.DataSource := fonte;
  DBEditDataRec.DataSource := fonte;
  DBLookupComboBoxFormaPagamento.DataSource := fonte;
  DBEditJuros.DataSource := fonte;
  DBEditTitulo.DataSource := fonte;
  DBEditParcelas.DataSource := fonte;
  DBEditVencimento.DataSource := fonte;
  DBEditValor.DataSource := fonte;
end;

end.
